﻿using Transformable_Engine_v2.Engine.GameObjects.Containers;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace Super_Management_Mayhem.Screens.Playing.ObjectInterfaces
{
    public class PositionTrackerContainer : Container
    {
        /// <summary>
        /// Previous position of the container, relative to its parent
        /// </summary>
        public TE_Vector2 OldPosition { get; private set; }

        /// <summary>
        /// Position of the container, relative to its parent
        /// </summary>
        public override TE_Vector2 Position
        {
            get
            {
                return base.Position;
            }
            set
            {
                OldPosition = base.Position;
                base.Position = value;
            }
        }
    }
}